#{extends 'home.html' /} 
#{set title: 'Delete User'/}
<h1 class="viewTitle">User Deleted</h2>
<div class="viewContent">
<h1>
Chosen User has been deleted successfully.
</h1>
<br/>
#{if flag1==1}
<p>
These organizations has no Lead now (Better to delete them or assign new Lead):-
</p>
#{table outOrganizations , as: 'item'}
                #{column 'Organization Name'}
                <a href="@{Browse.viewOrganization(item.id)}" class=standardLink>
                ${item.name}</a>  
                #{/column}
                #{column 'Choose new lead'}
                <a href="@{Users.chooseNewLead(item.id)}" class=standardLink>
                Choose the new lead</a> 
                #{/column}
                #{column 'Delete Organization'}
                <a href="@{Organizations.deleteOrg(item.id)}" class=standardLink>
                Delete the organization</a> 
                #{/column}
#{/table} 
#{/if}
#{if flag2==1}
<p>
These entities has no organizers now (Better to delete them or assign new organizer):-
</p>
#{table outEntities, as:'item'}
#{column 'Entity name'}
<a href = "@{Browse.viewEntity(item.id)}" class="standardLink">
${item.name}
</a>
#{/column}
#{/table}
#{/if}
<a href = "@{Users.chooseDeletedUSer()}" class="standardLink">
Delete More users </a> 
</div>